const mongoose = require('./index');


const Users = mongoose.model('users', {
    name: String,
    phone: {
        type: String,
        required: true
    },
    password: {
        type: String,
        required: true
    },
    createdAt: {
        type: Number,
        default: (new Date().getTime() / 1000).toFixed()
    },
    updatedAt: {
        type: Number,
        default: (new Date().getTime() / 1000).toFixed()
    }
});

// 导出的是模型
module.exports = Users;